package com.zhumeijia.wuye.service;

import com.zhumeijia.wuye.bean.Location;
import com.zhumeijia.wuye.mapper.LocationMapper;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class LocationService {
    @Autowired
    LocationMapper dao;

    public Location findLocaltion(String province) {
        return dao.selectByProvice(province);
    }

    public List<Location> getAllLocation() {
        return dao.getAllLocation();
    }
}
